﻿@using WebEntities
@model WI_News

@{
    ViewBag.Title = "新闻资讯";
    Layout = "~/Views/Shared/_DefLayout.cshtml";
}

@Html.Action("LeftMenu", new { cataId = ViewBag.CataID })
<div class="subright">
    @if (Model != null)
    {
    <div class="pagepath"><a href="/"><img src="/Images/homeicon.jpg" alt="首页" /></a> &gt; <a href="/newsinfo">新闻资讯</a> &gt; <a href="/newsinfo/detail/@Model.NewsID">@Model.NewsTitle</a></div>
    <div class="midcontent">
        <div>
            <div style="float:left"><img src="/Images/news01.jpg" alt="" /></div>
            <h1 class="newstitle">@Model.NewsTitle</h1>
            <div class="cls"></div>
        </div>
        <div class="newsinfo">
            <span>新闻类别：@(Model.WI_NewsCata != null ? Model.WI_NewsCata.CataName : string.Empty)</span>
            <span>发布时间：@((Model.PubTime.HasValue ? Model.PubTime : Model.CreateTime).Value.ToString("yyyy/MM/dd"))</span>
            <span>文章作者：@(string.IsNullOrWhiteSpace(Model.Publisher) ? string.Empty : Model.Publisher)</span>
            <span>阅读次数：@(Model.ViewCount ?? 0)次</span>
        </div>
        <div class="newsdescr">@Html.Raw(Server.HtmlDecode(Model.Description))</div>
    </div>
    }
</div>
<div class="cls"></div>

